package org.mybatis.demo.mapper;


import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mybatis.demo.domain.User;

import java.util.List;

/**
 * @author yangjian
 */
public interface UserMapper {

  User selectUser(int id);

  void addUser(User user);

  void batchAddUser(@Param("users") List<User> users);

  @Select("select * from user")
  List<User> selectUsers();
}
